package org.example.system.domain.question.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class QuestionAddDTO {
    @NotBlank(message = "标题不能为空")
    private String title;

    @NotNull(message = "难度不能为空")
    @DifficultyValid
    private Integer difficulty;

    @NotNull(message = "timeLimit不能为空")
    private Long timeLimit;

    @NotNull(message = "spaceLimit不能为空")
    private Long spaceLimit;

    @NotBlank(message = "题目内容不能为空")
    private String content;

    @NotBlank(message = "题目示例不能为空")
    private String  questionCase;

    @NotBlank(message = "默认代码不能为空")
    private String defaultCode;

    @NotBlank(message = "mainFunc不能为空")
    private String mainFunc;
}
